<?php
/******************************************************************************
 * Author: michal
 * Last modified: 2010-12-03 09:37
 * Filename: general_show_t.view.php
 * Extend: base_1col.view.php
 * Description:	单条微博页模板 
 * 继承的变量:
 * $title,$user,$sitename,$lang,$arrowPosition,$extrahead,$content
 * 新声明的变量:
 * 变量列表:
 * 已使用的变量:
 * 子模板可用变量: 
******************************************************************************/
ob_start();
?>
<style type="text/css">

	.content .adv{float:left;margin-top:15px;}
	.content .profile{float:left;width:215px;}
	.profile{height:160px;}
	.searchbar{clear:both;}
	div.searchbar{width:760px;margin:20px 20px 0;display:inline-block;*display:inline;zoom:1}
	.searchBox{width:764px;height:149px;background:url(style/images/searchbg.png) no-repeat;margin:10px 0 0 20px;position:relative;}
	.searchBox label,.searchBox input,.searchBox span{position:absolute;}
	.searchBox label{top:18px;left:167px;color:#D2E1AA;}
	.searchBox .text{left:175px;top:45px;width:343px;height:31px;border:0;background:none;outline:none;font-size:14px;line-height:30px\9;}
	.searchBox .btn{left:541px;top:46px;width:75px;height:28px;border:0;outline:none;border-radius:5px;background:none;cursor:pointer;}
	.searchBox .btn:hover{background:rgba(0,255,0,.1);}
	.searchBox span{left:168px;top:80px;color:#587800;}
	.searchBox span a{color:#587800;}
	.searchBox span a:hover{text-decoration:underline;}
	.linehead{margin-left:20px;margin-right:20px;clear:both;}

	.button{padding:5px 15px;_ padding:8px 15px 3px;}
</style>		
<?php
$extrahead = ob_get_contents();
ob_end_clean();
ob_start();
?>
	<div class="adv"><a href="http://t.cyol.com/index.php?m=topic&k=%E6%B8%85%E6%98%8E%E7%A5%AD%E5%85%88%E8%BE%88"><img src="style/images/adv.jpg"/></a></div>
	<div class="profile">
		<a class="head" href="./index.php?m=userhead" title="<?php echo "{$screenuser["nick"]}(@{$screenuser["name"]})";?>">
			<?php if( is_array($screenuser) && array_key_exists("head",$screenuser) && $screenuser["head"] && strlen($screenuser["head"]) > 0 ) { ?>
				<img src="<?php echo $screenuser["head"];?>" width=100 height=100/>
			<?php }else{ ?>
			<img src="./style/lang/<?php echo $lang;?>/images/default_head.png" width="100" height="100"/>
			<?php } ?>
		</a>
		<div class="info">
		<?php if(isset($updateinfo) && $updateinfo["fans"] > 0 ){ ?>
		<a href="./index.php?m=follower&u=<?php echo $screenuser["name"];?>" class="newfans" id="newfans"><div class="rightbg"><span id="newfanscount"><?php echo $updateinfo["fans"];?></span></div></a>
		<?php }else{ ?>
		<a href="./index.php?m=follower&u=<?php echo $screenuser["name"];?>" class="newfans" id="newfans" style="display:none;"><div class="rightbg"><span id="newfanscount"></span></div></a>
		<?php }?>
		<span>听众</span><a class="usehovereffect" href="./index.php?m=follower&u=<?php echo $screenuser["name"];?>"><?php echo $screenuser["fansnum"];?></a>
		<span>收听</span><a class="usehovereffect" href="./index.php?m=following&u=<?php echo $screenuser["name"];?>"><?php echo $screenuser["idolnum"];?></a>
		<span class="last">广播</span><a class="usehovereffect" href="./index.php?m=mine"><?php echo $screenuser["tweetnum"];?></a>
		</div>
		<div class="namelink">
			<span><?php echo $screenuser["nick"];?></span>
			<a href="./index.php?m=index" title="<?php echo "http://".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']."?".$screenuser["name"];?>"><?php echo limit("http://".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']."?".$screenuser["name"],14);?></a>
		</div>
    </div>
	<div class="searchbar" style="clear:both">
		<ul class="searchselector">
			<li class="active">综合找人</li>
			<li></li><li></li><li></li>
			<?php 
				//暂不支持
				/*
				<li>可能认识</li>
				<li><a href="./index.php?m=searcht&amp;k=">分类推荐</a></li>
				*/
			?>
		</ul>
	</div>
	<form class="searchBox" action="index.php" method="get">
		<label>你在找谁？请输入对方的姓名或帐号</label>
		<input type="hidden" name="m" value="searchuser"/>
		<input type="text" name="k" class="text"/>
		<input type="submit" value="" class="btn"/>
		<span>想找更多的朋友来分享微博吗？<a href="#">马上邀请朋友开通</a></span>
	</form>


<style>
.navArr {
    left: 487px;
}
.searchTit {
    margin: 10px auto 0;
}
.whiteBg {
    height: auto;
    min-height: 0;
    padding: 15px 0 20px;
    position: relative;
}
#mainWrapper .title, #mainWrapper .top, #mainWrapper .bot, .peopleNav a {
    background: url("style/images/searchBg_0607.png") no-repeat scroll 0 0 transparent;
}
#mainWrapper .title {
    background-position: 0 -128px;
    background-repeat: repeat-x;
    height: 19px;
    margin: 5px 0 20px;
    padding-left: 15px;
    position: relative;
}
#mainWrapper .peopleList .title {
    margin-bottom: 0;
}
#mainWrapper .comWrap .title h3 {
    background: none repeat scroll 0 0 #FFFFFF;
    padding: 0 10px;
    position: absolute;
}
.changeUser {
    background: none repeat scroll 0 0 #FFFFFF;
    font-family: "Simsun";
    margin-left: 120px;
    padding-right: 8px;
    position: absolute;
    top: 2px;
}
#mainWrapper .top, #mainWrapper .bot {
    background-position: 0 -190px;
    clear: both;
    height: 7px;
    overflow: hidden;
    position: relative;
    top: 7px;
    width: 118px;
    z-index: 1;
}
#mainWrapper .bot {
    background-position: 0 -200px;

}
#mainWrapper .comWrap {
    margin: 0 auto;
    overflow: hidden;
    padding: 15px 0;
    position: relative;
    width: 750px;
}
#mainWrapper .comWrap .imgList li img {
    border: 1px solid #D2D2D2;
    height: 50px;
    margin: 0 auto;
    padding: 1px;
    width: 50px;
}
.tabStyle2 {
    margin-top: 0;
    width: 750px;
}
.tabStyle2 .right .vip {
    float: left;
    margin: 13px 3px 0 0;
}
.searchWrap {
    margin: 15px auto 0;
    overflow: hidden;
    padding: 0;
    width: 700px;
}
.searchBox {
    color: #B3B3B3;
    line-height: 29px;
}
.black {
    color: #333333;
}
.searchBox .clear a {
    left: 3px;
    position: relative;
    top: 2px;
}
.searchBox .inputTxt {
    height: 21px;
    padding-top: 7px;
    width: 240px;
}
.searchBox .searchBtn {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    height: 32px;
    margin-left: 10px;
    vertical-align: middle;
    width: 80px;
}
.userList {
    float: left;
    height: 77px;
    padding: 20px 0 10px 10px;
    width: 190px;
}
.userInfo {
    float: right;
    line-height: 19px;
    width: 125px;
}
.userInfo a {
    font-size: 14px;
}
.peopleWrap {
    background: url("style/images/regLbg.gif") repeat-y scroll 0 0 #FFFFFF;
}
.peopleNav {
    float: left;
    padding: 7px 0 7px 1px;
    width: 117px;
}
.peopleNav a {
    background-position: 0 -211px;
    display: block;
    font-size: 14px;
    height: 36px;
    line-height: 36px;
    padding-right: 17px;
    text-align: right;
    width: 100px;
}
.peopleNav a.hover {
   background-position: 0 -306px;
  /*   background-position: 0 211px;*/
    color: #333333;
    font-weight: bold;
    margin-top: -2px;
    padding-top: 2px;
}
.peopleList {
    float: left;
    width: 632px;
}
.peopleList .pic {
    float: left;
    width: 56px;
}
.pic label, .pic label b {
    display: block;
    height: 56px;
    position: relative;
    width: 56px;
}
.pic label a{
    height: 55px;
    display: block;
    width: 55px;
}
.pic label b {
    background: none repeat scroll 0 0 #FFFFFF;
    cursor: pointer;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    z-index: 2;
}
.pic label input {
    bottom: 0;
    left: 0;
    position: absolute;
    z-index: 1;
}
.imgList {
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    width: 1747px;
}
.imgList li {
    height: auto;
    margin: 0;
    overflow: visible;
    padding-left: 5px;
    position: relative;
    width: 78px;
}
.imgList li.btnBox {
    border: medium none !important;
    padding: 20px 0 0;
}
.peopleList .imgList {
    margin: -14px 0 0 20px;
    width: 602px;
}
.peopleList .moreLink {
    padding-left: 11px;
}
.peopleList .imgList li {
    border-bottom: 1px dotted #B5B5B5;
    margin-top: 14px;
    padding: 0;
    text-align: left;
    width: 100%;
}
.peopleList #niceUser, .peopleList #niceUser li {
    border: medium none !important;
    margin-top: 0;
}
.peopleList .imgList li.link {
    border: medium none;
    font-size: 14px;
    margin-left: 80%;
    margin-top: -30px;
    text-align: right;
    width: 20%;
}
.btnBox input.btn {
    cursor: pointer;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    margin: 0 auto;
    padding: 7px 0 5px;
    width: 120px;
}
.imgList .close {
    display: none;
    float: none;
    margin-top: -4px;
    position: absolute;
    right: 7px;
}
.imgList .hover .close {
    display: inline;
}
.searchTab {
    -moz-border-bottom-colors: none;
    -moz-border-image: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background: none repeat scroll 0 0 transparent;
    border-color: -moz-use-text-color -moz-use-text-color #ECECEC;
    border-style: none none solid;
    border-width: 0 0 1px;
    margin: 0 auto;
    padding: 9px 0;
    width: 100%;
}
.searchTab ul {
    overflow: hidden;
}
.searchTab li {
    background: url("style/images/searchBg_1020.png") no-repeat scroll 0 0 transparent;
}
.searchTab li {
    background-position: -120px 0;
    display: inline-block;
    float: left;
    height: 20px;
    margin-left: -1px;
}
.searchTab li.select {
    margin-left: 0;
    position: relative;
}
.searchTab li * {
    display: inline-block;
    height: 18px;
    line-height: 19px;
    overflow: hidden;
    padding: 1px 15px;
}
.searchTab li.select a, .searchTab li.select b {
    background: none repeat scroll 0 0 #E1F5FE;
    border: 1px solid #CDE7F2;
    color: #333333;
    cursor: default;
    font-weight: bold;
    padding: 0 14px;
}
.peopleList .attentBox {
    margin: 0 auto;
}

</style>
<div id="mainWrapper" class="whiteBg">
<div class="comWrap">
    <div class="top"></div>
    <div class="peopleWrap clear">

        <div class="peopleNav">
            <?php foreach($grouplist['list'] AS $v):?>
            <a href="index.php?m=lookformate&gid=<?php echo$v['gid']; ?>" <?php if($v['gid']==$grouplist['curent_gid']){?> class="hover"<?php } ?> ><?php echo $v['gname']; ?></a>
            <?php endforeach;?>

        </div>
		<div class="peopleList">
            <ul class="imgList" id="niceUser">
            <li>
            <?php foreach($groupuser['list'] AS $k => $v):?>
            <div class="userList"><div class="pic"><label class="ttouxiang">
            <a title="<?php echo $v['data']['nick']; ?>(@<?php echo $v['u_name']; ?>)" href="index.php?m=guest&u=<?php echo $v['u_name']; ?>" target="_blank" rel="<?php echo $v['data']['nick']; ?>(@<?php echo $v['u_name']; ?>)"><img src="<?php if($v['data']['head']){ ?><?php echo $v['data']['head']; ?>/50<?php }else{?>style/images/head_50.jpg<?php } ?>" title="<?php echo $v['data']['nick']; ?>(@<?php echo $v['u_name']; ?>)" class="" card="1" ctype="3"></a></label><div class="attentBox"><?php if($v['data']['Ismyidol']){?><input type="button" value="收听" class="addAttention" style="display:none" rel="<?php echo $v['u_name']; ?>"><a  class="delAttention" href="#"  rel="<?php echo $v['u_name']; ?>">取消</a><?php }else{ ?><input type="button" value="收听" class="addAttention"  rel="<?php echo $v['u_name']; ?>"><a style="display:none" class="delAttention" href="#"  rel="<?php echo $v['u_name']; ?>">取消</a><?php } ?></div></div>
            <div class="userInfo"><a href="index.php?m=guest&u=<?php echo $v['u_name']; ?>" target="_blank"><?php echo $v['data']['nick']; ?></a><br><?php echo limit($v['u_info'],30,'...'); ?></div></div>
            <?php endforeach;?>
            </li>
            <div style="clear:both"></div>
            <!--<li class="btnBox"><input class="btn" value="一键收听" type="button"></li>-->
            </ul>
		</div>
            <div class="bot"></div>


    </div>
	</div>
	</div>

<?php
$content = ob_get_contents();
ob_end_clean();
require_once pathJoin( TEMPLATE_DIR,'base_1col.view.php' );
?>
